package com.ship.dispatch.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ship.common.core.base.Joinable;
import com.ship.common.core.mapping.Label;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@TableName("sp_qualifications")
public class SpQualifications extends BaseBean implements Joinable {
    private Long id;
    /**
     * 船舶名称
     */
    @Label(value = "船舶名称")
    private String nameOfVessel;

    /**
     * imo
     */
    @Label(value = "imo")
    private String imo;

    /**
     * 证书名称
     */
    @Label(value = "证书名称")
    private String certName;

    /**
     * 签发日期
     */
    @Label(value = "签发日期")
    @JsonFormat(pattern = "yyyy/MM/dd")
    private Date signDate;

    /**
     * 签发机构
     */
    @Label(value = "签发机构")
    private String signAgency;

    /**
     * 有效期
     */
    @Label(value = "有效期")
    private Integer expirationDate;

    @TableField(exist = false)
    private String expirationDateStr;

    /**
     * 到期时间
     */
    @Label(value = "到期时间")
    @JsonFormat(pattern = "yyyy/MM/dd")
    private Date expirationTime;

    /**
     *删除申请
     */
    @Label(value="删除申请",boolContent = true)
    private Integer delApply;

    /**
     * 备注
     */
    @Label(value = "备注")
    private String remarks;

    /**
     * 文件id
     */
    @Label(value = "文件id")
    @TableField(exist = false)
    private List<String> fileIds;

    /**
     * 文件地址(用于接收数据)
     */
    @Label(value = "文件地址")
    @TableField(exist = false)
    private List<Map<String, String>> file;

    @Override
    public String getLabel() {
        return null;
    }

    @Override
    public String getValue() {
        return null;
    }

}
